const db = wx.cloud.database()
Page({
  data: {
    boxlist:
      [
        {
          name: "车牌识别",
          url: "/images/chepai.png"
        },
        {
          name: "物体识别",
          url: "/images/wupin.png"
        }
      ],
  }, 
  enterapplication: function (event) {
    var id = event.currentTarget.dataset.id
    switch (id) {
      case '车牌识别':
        wx.navigateTo({ url: '../carAi/carAi' })
        break;
      case '物体识别':
        wx.navigateTo({ url: '../objectRecognition/objectRecognition' })
        break;
      default:
        break;
    }
  },
})